package com.ap.core.domain;

import org.hibernate.annotations.TypeDef;
import org.joda.time.LocalDate;

import javax.persistence.AttributeOverride;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * User: Rohit.Dixit
 */
@Entity
@Table(name = "T_DELIVERY_ADDRESS")
@AttributeOverride(name = "id",column = @Column(name = "delivery_address_id"))
@TypeDef(name = "id", typeClass = Long.class)
public class QuickPayDeliveryAddress extends BaseDeliveryAddress {


	private static final long serialVersionUID = -27389217983747L;

    @Column(name="ap_txn_id")
    private String apTransactionId;


    private QuickPayDeliveryAddress(){
        super();
    }


    public QuickPayDeliveryAddress(Long deliveryMethodId, String apTransactionId, String addressLine1, String addressLine2,
                                   String addressLine3, String addressLine4, String addressLine5, String addressLine6,
                                   String postCode, String countryCode, String reconciliationCycleId, LocalDate reconciliationDate) {
		 super(deliveryMethodId, addressLine1, addressLine2, addressLine3, addressLine4, addressLine5, addressLine6, postCode, countryCode, reconciliationCycleId, reconciliationDate);
        this.apTransactionId = apTransactionId;
	}

    public String getApTransactionId() {
        return apTransactionId;
    }

}
